//
//  moneyAndSeverCell.m
//  nmrsc
//
//  Created by xumckay on 16/1/12.
//  Copyright © 2016年 bric. All rights reserved.
//

#import "moneyAndSeverCell.h"

@implementation moneyAndSeverCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        int btnWidth=kDeviceWidth/3;
        
        UIView *lineView=[[UIView alloc]initWithFrame:CGRectMake(0,0,kDeviceWidth,15)];
        lineView.backgroundColor=COLOR(245, 245, 245, 1);
        [self.contentView addSubview:lineView];
        
        _titleBtn=[[titleButton alloc]initWithFrame:CGRectMake(15,(111-15)/4+5,150,18)];
        [_titleBtn setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        _titleBtn.titleLabel.font=[UIFont systemFontOfSize:15];
        
        [self.contentView addSubview:_titleBtn];
        
        UIView *sep=[[UIView alloc]initWithFrame:CGRectMake(0,15,kDeviceWidth,1)];
        sep.backgroundColor=COLOR(200, 200, 200, 1);
        [self addSubview:sep];
        
        UIView *sep1=[[UIView alloc]initWithFrame:CGRectMake(0,15+(111-15)/2,kDeviceWidth,1)];
        sep1.backgroundColor=COLOR(200, 200, 200, 1);
        [self addSubview:sep1];
        
        _btn1=[[UIButton alloc]initWithFrame:CGRectMake(0,15+(111-15)/2,btnWidth,(111-15)/2)];
        _btn1.titleLabel.textAlignment=NSTextAlignmentCenter;
        _btn1.titleLabel.font=[UIFont systemFontOfSize:12];
        [_btn1 setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [self addSubview:_btn1];
        
        _btn2=[[UIButton alloc]initWithFrame:CGRectMake(btnWidth,15+(111-15)/2,btnWidth,(111-15)/2)];
        _btn2.titleLabel.textAlignment=NSTextAlignmentCenter;
        _btn2.titleLabel.font=[UIFont systemFontOfSize:12];
        [_btn2 setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [self addSubview:_btn2];
        
        _btn3=[[UIButton alloc]initWithFrame:CGRectMake(btnWidth*2,15+(111-15)/2,btnWidth,(111-15)/2)];
        _btn3.titleLabel.textAlignment=NSTextAlignmentCenter;
        _btn3.titleLabel.font=[UIFont systemFontOfSize:12];
        _btn3.titleLabel.textAlignment=NSTextAlignmentCenter;
        [_btn3 setTitleColor:COLOR(120, 120, 120, 1) forState:UIControlStateNormal];
        [self addSubview:_btn3];
        
        UIView *sep2=[[UIView alloc]initWithFrame:CGRectMake(0,110,kDeviceWidth,1)];
        sep2.backgroundColor=COLOR(200, 200, 200, 1);
        [self.contentView addSubview:sep2];
        
    }
    return self;
}



- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
